<template>
  <a-form-model
    style="color: #000"
    layout="horizontal"
    label-align="left"
    :labelCol="{
      span: 2,
    }"
    :wrapperCol="{
      span: 20,
    }"
  >
    <div class="form-title">查杀扫描</div>
    <div style="padding-left: 40px">
      <a-form-item label="扫描文件：">
        <div class="u-flex u-align-center">
          <span>扫描过程自动跳过大于</span>
          <a-input-number
            v-model="form.logStoreTime"
            class="line-30 mv-6"
            style="width: 100px"
          ></a-input-number>
          <span>M文件</span>
        </div>
        <div class="u-flex u-align-center" style="margin-top: 10px">
          <span>最大扫描</span>
          <a-input-number
            v-model="form.zip"
            class="line-30 mv-6"
            style="width: 60px"
          ></a-input-number>
          <span>层压缩包</span>
        </div>
      </a-form-item>
      <a-form-item label="发现恶意文件：" class="file-item">
        <a-radio-group v-model="form.file">
          <a-radio :style="radioStyle" :value="0">标准处置</a-radio>
          <a-radio :style="radioStyle" :value="1">严格处置</a-radio>
          <a-radio
            :style="{
              ...radioStyle,
              height: '60px',
            }"
            :value="2"
          >
            <span>仅上报，不处理</span>
            <div class="tip" style="margin-left: 23px">
              不自动修复或隔离病毒文件，仅将被感染文件的信息上报至管控平台。适用于有人值守且用户了解如何处置不同的病毒威胁的场景
            </div>
          </a-radio>
        </a-radio-group>
      </a-form-item>

      <a-form-item label="扫描引擎：">
        <span class="tips">
          启用更多引擎，可提高病毒检出率，但同时会加大对系统性能的影响
        </span>
        <div>
          <a-checkbox-group v-model="form.scanEngine">
            <a-checkbox disabled value="1">SAVE人工智能引擎</a-checkbox>
            <a-checkbox value="2">基因特征引擎</a-checkbox>
            <a-checkbox value="3">行为分析引擎</a-checkbox>
            <a-checkbox disabled value="4">云查引擎</a-checkbox>
          </a-checkbox-group>
        </div>
      </a-form-item>
      <div class="flex" style="margin-top: 20px; width: 556px">
        <u-button class="btn-default btn-confirm" @click="confirm">
          确定
        </u-button>
      </div>
    </div>
  </a-form-model>
</template>
<script>
export default {
  data() {
    return {
      form: {
        scanEngine: ["1", "2", "3", "4"],
        logStoreTime: 80,
        file: 0,
        zip: 3,
      },
      radioStyle: {
        display: "block",
        lineHeight: "30px",
      },
    };
  },
  mounted() {
    this.getConfig();
  },
  methods: {
    getConfig() {},
    confirm() {
      this.$message.success("配置成功");
    },
  },
};
</script>
<style lang="scss" scoped>
.point {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
::v-deep .ant-input-number-input {
  text-align: center;
}
.line-30 {
  line-height: 30px;
  height: 30px;
}
.lable {
  font-weight: bold;
  color: rgba(0, 0, 0, 0.85);
}

.mv-6 {
  margin: 0 6px;
}

.form-title {
  margin-top: 20px;
  padding-left: 20px;
  position: relative;
  font-size: 20px;
  font-weight: bold;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: #6398e5;
  }
}

.tip {
  color: #999;
}
.file-item :deep .ant-form-item-control {
  height: 120px;
}
</style>
